<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:cc="http://java.sun.com/jsf/composite"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets">
    <cc:interface>
        <cc:attribute name="items"/>
    </cc:interface>

    <cc:implementation>
        <h:form>
            <h:panelGrid columns="2">
                <p:outputLabel for="id_name_base" value="Name"/>
                <h:inputText id="id_name_base" value="#{baseCategoryBean.entity.name}"/>
                <p:outputLabel for="id_name_url" value="URL"/>
                <h:inputText id="id_name_url" value="#{baseCategoryBean.entity.url}"/>
                <p:outputLabel for="id_name_disabled" value="Disabled"/>
                <h:selectBooleanCheckbox id="id_name_disabled" value="#{baseCategoryBean.entity.disabled}"/>
                <p:outputLabel for="id_name_parent" value="Parent"/>

                <h:selectOneMenu id="id_name_parent" value="#{baseCategoryBean.entity.parentCategory}" converter="#{baseCategoryBean.converter}">
                    <f:selectItems value="#{baseCategoryBean.selectItems(true)}"/>
                </h:selectOneMenu>
                <h:commandButton 
                    value="create"
                    action="#{baseCategoryBean.create()}"/>
            </h:panelGrid>
        </h:form>
    </cc:implementation>
</ui:composition>
